package com.mwh.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;

@Controller
public class Controller1 {
    @Value("真果粒")
    private String name;
    @Value("18")
    private int age;
    @Value("男")
    private String sex;

    @Override
    public String toString() {
        return "Controller{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                '}';
    }

        public void name() {
        System.out.println("Controller1的test()方法执行了。。。");
        }


}
